﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ShopAdmin/Site.Master" AutoEventWireup="true" CodeBehind="LineList.aspx.cs" Inherits="VK.Casemeet.Web.ShopAdmin.Lines.LineList" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<%@ Import Namespace="VK.Comm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentBody" runat="server">
    <div class="bodyContent divBody">
        <div class="divListOper">
            <a class="tableOperNew" href="LineAdd.aspx">新建线路</a>
        </div>
        <div class="divSearch">
            <div class="ico"></div>
            <div class="content">
                <div style="width:250px;">
                    名称: <asp:TextBox ID="txtName" runat="server" Width="200" CssClass="inputText"></asp:TextBox>
                </div>
            </div>
            <div class="search" style="width:80px;">
                <asp:Button ID="butSearch" runat="server" CssClass="inputbutSearch" Text="搜 索 >>" onclick="butSearch_Click" />
            </div>
        </div>

        <asp:Repeater ID="rptLine" runat="server" onitemcommand="rptLine_ItemCommand">
        <HeaderTemplate>
        <table class="tableList" cellspacing="0">
            <thead>
                <tr>
                    <th>线路ID</th>
                    <th>名称</th>
                    <th>目的地</th>
                    <th>集结地</th>
                    <th>活动类型</th>
                    <th>活动时长</th>
                    <th>住宿方式</th>
                    <th>活动分级</th>
                    <th>预计费用</th>
                    <th>点击</th>
                    <th>创建时间</th>
                    <th>启用</th>
                    <th style="width:110px;"><span>操作</span></th>
                </tr>
            </thead>
            <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td><%# Eval("LineID")%></td>
                    <td><%# Eval("Name")%></td>
                    <td><%# Eval("DesProvinceName")%></td>
                    <td><%# Eval("StaProvinceArea")%></td>
                    <td><%# VK.Casemeet.Lines.LineHelper.GetTypeLabel((int)Eval("Type")) %></td>
                    <td><%# Eval("Days")%>天</td>
                    <td><%# VK.Casemeet.Lines.LineHelper.GetStayLabel((int)Eval("Stay"))%></td>
                    <td><%# VK.Casemeet.Lines.LineHelper.GetGradeLabel((int)Eval("Grade")) %></td>
                    <td>￥<%# Util.ViewNumber(Eval("Price").ToString())%></td>
                    <td><%# Eval("Hits")%></td>
                    <td class="txtcen"><%# Util.FormatDateTime((DateTime)Eval("Created"), DateTimeStyle.ShortDate2)%></td>
                    <td class="txtcen"><%# VK.Casemeet.PageHelper.GetIsEnableLabel((bool)Eval("IsEnable")) %></td>
                    <td class="txtcen">
                        <a class="left tableOperEdit" href="LineEdit.aspx?LineID=<%# Eval("LineID")%>">&nbsp;</a>
                        <asp:LinkButton CssClass="left tableOperDelete" ID="butDelete" CommandName="Delete" CommandArgument='<%# Eval("LineID")%>' runat="server" OnClientClick="return confirm('您确定要删除吗？删除后将不可恢复！');">&nbsp;</asp:LinkButton>
                    </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
        </table>
        </FooterTemplate>
        </asp:Repeater>
        
        <webdiyer:AspNetPager ID="aspNetPager" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
            onpagechanged="aspNetPager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20" SubmitButtonText="Go" 
            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" 
            CustomInfoHTML="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;共%RecordCount%条, 每页%PageSize%条, <font style='color:#A36D33;'>%currentPageIndex%</font>/%pageCount%页" 
            ShowCustomInfoSection="Left" CustomInfoSectionWidth="580px" NumericButtonCount="5">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
